package com.lbx.kafka;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: lbx
 * @create: 2018/7/12 13:56
 **/
@Slf4j
@Component
public class KafkaConsumer {


    /**
     * 监听test主题,有消息就读取
     * @param message
     */
   // @KafkaListener(topics = {"kafkatest"})
    public void consumer(String message){
        log.info("test topic message : " + message);
    }
}
